define(['jquery','mui','form','page', 'picker'], function($,$$,Form,Page,undefined) {
    var Controller = {
        index: function () {
            console.log(window.localStorage.data_account+'###')
            console.log(window.localStorage.data_account+'@@@')
            if(window.localStorage.data_account!='' && window.localStorage.data_account!=undefined){
                alert('111111111');
                mui.showLoading("正在加载.."); //加载文字和类型，plus环境中类型为div时强制以div方式显示
                //已存在，在判断是否已经被关闭
                $.ajax({
                    type: "post",
                    url: "/wap/signed/autologin",
                    data: { account: window.localStorage.data_account, password: window.localStorage.data_pwd,deviceid:Config.deviceid},
                    success:function(res){
                        console.log(res);
                        mui.hideLoading();//隐藏后的回调函数
                        if(res.code==0){
                            mui.alert(res.msg);
                            mui.showLoading("不可操作.."); //加载文字和类型，plus环境中类型为div时强制以div方式显示
                        }
                        return false;
                    }
                });
            }
            alert('1111111111')
            setInterval(function() {
                if($(".mui-tips").css("display") !== "none"){
                    $(".mui-tips").fadeOut();
                }
            }, 3000); // 每3000毫秒（3秒）执行一次
            // Controller.api.upload();
            // Form.api.bindevent($("#login-form"));
        },
        api: {
            bindevent: function () {
                Form.api.bindevent($("form[role=form]"));
            },
        }
    }
    return Controller;
})
